package com.yuyou.train.user.service;

import java.util.List;

import com.yuyou.train.service.api.user.entity.UserRemind;
import com.yuyou.train.util.bean.Pagination;
import com.yuyou.train.util.bean.ResBoolSimpleInfo;


public interface IUserRemindService {
    int deleteByPrimaryKey(String id);

    int insert(UserRemind record);

    UserRemind selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(UserRemind record);
    
    /**
     * 查找提醒
     * @param receUserId 接收人用户ID
     * @return
     */
    List<UserRemind> selectByReceUserId(String receUserId);
    
    /**
     * 新增一条提醒
     * @param sendId
     * @param receId
     * @param type
     * @return
     */
    ResBoolSimpleInfo<String> addRemind(UserRemind userRemind);
    
    /**
     * 已读
     * @param userRemind
     * @return
     */
    ResBoolSimpleInfo<String> finishRemind(String id);

    int findUserRemindPageCount(Pagination<UserRemind> p);

    List<UserRemind> findUserRemindPage(Pagination<UserRemind> p);
}